package com.medisign.sign.log.util;

import cn.hutool.crypto.digest.SM3;

import java.io.File;

public class Sm3Util {

    public static String genSm3ByString(String preDigestSourceData) {
        String sm3 = SM3.create().digestHex(preDigestSourceData);
        return sm3;
    }

    public static String genSm3ByFile(File file) {
        String sm3 = SM3.create().digestHex(file);
        return sm3;
    }

}
